![]() |
GetResInfo |
||||
Header: | Resources.h | Carbon status: | Supported | |
Gets a resource’s resource ID, resource type, and resource name.
void GetResInfo ( Handle theResource, SInt16 *theID, ResType *theType, Str255 name );
A handle to the resource for which you want to retrieve information. If the handle isn’t a valid handle to a resource, the function does nothing; to determine whether this has occurred, call the ResError function.
On return, a pointer to the resource ID of the specified resource.
On return, a pointer to the resource type of the specified resource.
On return, the name of the specified resource.
To set a resource’s ID, resource type, or resource name, use the SetResInfo function.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)